package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 供应商档案对象 vendors
 * 
 * @author ruoyi
 * @date 2025-10-16
 */
public class Vendors extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 供应商编码 */
    private String vendorId;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String vendorName;

    /** 供应商地址 */
    @Excel(name = "供应商地址")
    private String vendorAddress;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contactPerson;

    /** 是否停用 */
    @Excel(name = "是否停用")
    private Long status;

    /** 停用状态 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "停用状态", width = 30, dateFormat = "yyyy-MM-dd")
    private Date statusDate;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdPerson;

    public void setVendorId(String vendorId) 
    {
        this.vendorId = vendorId;
    }

    public String getVendorId() 
    {
        return vendorId;
    }

    public void setVendorName(String vendorName) 
    {
        this.vendorName = vendorName;
    }

    public String getVendorName() 
    {
        return vendorName;
    }

    public void setVendorAddress(String vendorAddress) 
    {
        this.vendorAddress = vendorAddress;
    }

    public String getVendorAddress() 
    {
        return vendorAddress;
    }

    public void setContactPerson(String contactPerson) 
    {
        this.contactPerson = contactPerson;
    }

    public String getContactPerson() 
    {
        return contactPerson;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setStatusDate(Date statusDate) 
    {
        this.statusDate = statusDate;
    }

    public Date getStatusDate() 
    {
        return statusDate;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setCreatedPerson(String createdPerson) 
    {
        this.createdPerson = createdPerson;
    }

    public String getCreatedPerson() 
    {
        return createdPerson;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("vendorId", getVendorId())
            .append("vendorName", getVendorName())
            .append("vendorAddress", getVendorAddress())
            .append("contactPerson", getContactPerson())
            .append("status", getStatus())
            .append("statusDate", getStatusDate())
            .append("createdAt", getCreatedAt())
            .append("createdPerson", getCreatedPerson())
            .toString();
    }
}
